package org.tools.project

import adbtools.composeapp.generated.resources.Res
import adbtools.composeapp.generated.resources.android
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import org.jetbrains.compose.resources.painterResource

fun main() = application {
    Window(
        onCloseRequest = ::exitApplication,
        title = "Hello Compose",
        icon = painterResource(Res.drawable.android)
    ) {
        Surface {
            Main("Hello Compose")
        }
    }
}

@Composable
fun Main(content: String) {
    Text(content)
}